package com.czb.service;

import com.czb.dao.LogisticsDao;
import com.czb.util.PageBean;

import java.util.Map;

public class LogisticsServiceImpl implements LogisticsService{
    LogisticsDao logisticsDao = new LogisticsDao();
    @Override
    public PageBean<Map> findAll(Integer page, Integer limit, String sql, Object... obj) {
        return logisticsDao.findAll(page,limit,sql,obj);
    }

    @Override
    public int add(String sql, Object[] obj) {
        return logisticsDao.add(sql,obj);
    }

    @Override
    public Map findById(String sql, int loid) {
        return logisticsDao.findById(sql,loid);
    }

    @Override
    public int update(String sql, Object[] obj) {
        return logisticsDao.update(sql,obj);
    }

    @Override
    public int delete(String sql, int loid) {
        return logisticsDao.delete(sql,loid);
    }
}
